#include <boost/algorithm/string.hpp>
#include <locale>
#include <iostream>

int main()
{
	std::string s = "\t David Hilbert \t";
	std::cout << "#" << s << "#" << std::endl;
	std::cout << "#" << boost::algorithm::trim_left_copy(s) << "#" << std::endl;
	std::cout << "#" << boost::algorithm::trim_right_copy(s) << "#" << std::endl;
	std::cout << "#" << boost::algorithm::trim_copy(s) << "#" << std::endl;
}